#
# Makefile for the example
#
# <lgl88911@163.com>
#

CC = gcc
CFLAGS += -I. -DMUTIL_THREAD -finstrument-functions
EXCLUDE = -finstrument-functions-exclude-file-list=rbtree.c,talloc.c,gctrace.c
LFLAGS += -lrt -lpthread

OBJS = rbtree.o talloc.o gctrace.o example.o

example: $(OBJS)
	gcc -o $@ $(OBJS) $(LFLAGS)

.c.o:
	@echo "(CC) $@"
	$(CC) $(CFLAGS) $(EXCLUDE) -Wall -c -o $@ $<




clean:
	rm -f example *.o *.gc

